package day03_0623;

import java.util.Random;
import java.util.Scanner;

public class Test3 {
    public static void main(String[] args) {
        //1.生成两个数
        Random r=new Random();

        while(1<2) {
                int a = r.nextInt();
                int b = r.nextInt();
                System.out.println(a + "*" + b + "=");
                //2.输入答案
                Scanner s = new Scanner(System.in);
                int ans = s.nextInt();
                //3.比较对错 if-else
                if (a * b == ans) {
                    System.out.println("正确");
                } else {
                    System.out.println("错误");
                }
        }


    }
}
